<template>
  <div class="t-header">
    <div class="t-header_ctn">教学小栈</div>

    <div class="t-header_admin">
      <div class="t-header_admin_blk" @click="quitLogin">退出</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    quitLogin() {
      this.$store.commit("public/clearStorage");
      this.$store.commit("super/clearStorage");
      this.$store.commit("admin/clearStorage");
      localStorage.clear();
      sessionStorage.clear();
      this.$router.push({ name: "index" });
    },
  },
};
</script>

<style lang="scss">
.headdd {
  color: aliceblue;
}
</style>
